﻿
/*
*      
*          ┌─┐       ┌─┐
*       ┌──┘ ┴───────┘ ┴──┐
*       │                 │
*       │       ───       │
*       │  ─┬┘       └┬─  │
*       │                 │
*       │       ─┴─       │
*       │                 │
*       └───┐         ┌───┘
*           │         │
*           │         │
*           │         │
*           │         └──────────────┐
*           │                        │
*           │                        ├─┐
*           │                        ┌─┘    
*           │                        │
*           └─┐  ┐  ┌───────┬──┐  ┌──┘         
*             │ ─┤ ─┤       │ ─┤ ─┤         
*             └──┴──┘       └──┴──┘ 
*                 神兽保佑 
*                 代码无BUG! 
*  Author shang
*  2022-07-21 16:26:13
*/

namespace TS.Model;

public class HttpResult
{
    /// <summary>
    /// 接口返回码
    /// </summary>
    public int code { get; set; }
    public string msg { get; set; }

    public dynamic data { get; set; }

    public HttpResult()
    {
        code = 0;
        msg = "OK";
    }
    public HttpResult(dynamic data)
    {
        code = 0;
        msg = "OK!";
        this.data = data;
    }

    public HttpResult(dynamic data, int status, string msg)
    {
        code = status;
        this.msg = msg;
        this.data = data;
    }
}